其他
Eclipse 出品,1.3 万 Star!网友说要干掉 VS Code 的新工具
The following article is from 开源前哨 Author 袁杰Jerry
Theia 是什么?
在 docker 中运行
docker run -it --init -p 3000:3000 -v "$(pwd):/home/project" theiaide/theia:next
# Windows (cmd.exe)
docker run -it --init -p 3000:3000 -v "%cd%:/home/project" theiaide/theia:next
构建自己的 IDE
环境要求
Node.js 版本 >= 12.14.1 且 < 13 Yarn 版本 >= 1.7.0
创建项目
cd my-theia
"name": "My Cool IDE",
"dependencies": {
"@theia/callhierarchy": "next",
"@theia/file-search": "next",
"@theia/git": "next",
"@theia/markers": "next",
"@theia/messages": "next",
"@theia/mini-browser": "next",
"@theia/navigator": "next",
"@theia/outline-view": "next",
"@theia/plugin-ext-vscode": "next",
"@theia/preferences": "next",
"@theia/preview": "next",
"@theia/search-in-workspace": "next",
"@theia/terminal": "next"
},
"devDependencies": {
"@theia/cli": "next"
}
}
安装依赖
构建项目
运行 Theia IDE
封装 npm scripts
// ..... others
"scripts": {
"start": "theia start",
"build": "theia build"
}
}
(进阶)安装插件
// ... others
"scripts": {
"prepare": "yarn run clean && yarn build && yarn run download:plugins",
"clean": "theia clean",
"build": "theia build --mode development",
"start": "theia start --plugins=local-dir:plugins",
"download:plugins": "theia download:plugins"
},
"theiaPluginsDir": "plugins",
"theiaPlugins": {
"vscode-builtin-css": "https://github.com/theia-ide/vscode-builtin-extensions/releases/download/v1.39.1-prel/css-1.39.1-prel.vsix",
"vscode-builtin-html": "https://github.com/theia-ide/vscode-builtin-extensions/releases/download/v1.39.1-prel/html-1.39.1-prel.vsix",
"vscode-builtin-javascript": "https://github.com/theia-ide/vscode-builtin-extensions/releases/download/v1.39.1-prel/javascript-1.39.1-prel.vsix",
"vscode-builtin-json": "https://github.com/theia-ide/vscode-builtin-extensions/releases/download/v1.39.1-prel/json-1.39.1-prel.vsix",
"vscode-builtin-markdown": "https://github.com/theia-ide/vscode-builtin-extensions/releases/download/v1.39.1-prel/markdown-1.39.1-prel.vsix"
}
打包桌面应用
总结
从年末生产故障解锁RocketMQ集群部署的最佳实践
where 1=1 是什么鬼?